Skip to content

Scripts and a skill to do per-layer benchmark using flashinfer#1980

Open
sychen52 wants to merge 2 commits into
NVIDIA:mainfrom
sychen52:flashinfer_benchmark
Open

Scripts and a skill to do per-layer benchmark using flashinfer#1980
sychen52 wants to merge 2 commits into
NVIDIA:mainfrom
sychen52:flashinfer_benchmark

Conversation

@sychen52

@sychen52 sychen52 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

add scripts and a skill to use flashinfer to do layerwise benchmark with different backends.

What does this PR do?

Type of change: ? new skill and scripts

Usage

python .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py \
    openai/gpt-oss-120b \
    --tp 4 --ep 4 --ms 8 16 \
    --flashinfer_repo $HOME/flashinfer \
    --workdir /tmp/gpt-oss-benchmark

or

python .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py \
    --flashinfer_repo $HOME/flashinfer \
    --ms 8 16 \
    --nks 1280,2880 2880,1024 \
    --moe_hidden_size 2880 \
    --moe_intermediate_size 2880 \
    --moe_num_experts 32 \
    --moe_top_k 4 \
    --workdir /tmp/gpt-oss-via-builtin

Testing

run locally

Before your PR is "Ready for review"

Make sure you read and follow Contributor guidelines and your commits are signed (git commit -s -S).

Make sure you read and follow the Security Best Practices (e.g. avoiding hardcoded trust_remote_code=True, torch.load(..., weights_only=False), pickle, etc.).

  • Is this change backward compatible?: ✅ / ❌ / N/A
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: ✅ / ❌ / N/A
  • Did you write any new necessary tests?: ✅ / ❌ / N/A
  • Did you update Changelog?: ✅ / ❌ / N/A
  • Did you get Claude approval on this PR?: ✅ / ❌ / N/A

Additional Information

Summary by CodeRabbit

  • New Features
    • Added an operator-facing benchmark-model-kernels skill with a single-decision workflow for planning and running BF16/FP8/NVFP4 GEMM and fused-MoE microbenchmarks.
    • Introduced benchmarking scripts that derive per-rank kernel shapes and MoE routing from model configs (meta-tensor inspection), enforce reserved CLI parameters, and generate structured combined_results.csv output with quantization and error details.
  • Documentation
    • Added skill documentation describing supported layouts, validation rules, preview behavior, and result interpretation.
  • Tests
    • Added extensive pytest coverage for shape/routing derivation, CLI validation, driver integration, quantization/error handling, and CSV reporting.
  • Chores
    • Updated Bandit exclusions for the benchmark skill area.

@sychen52
sychen52 requested a review from a team as a code owner July 16, 2026 00:39
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 9a47a8a2-3bec-4aa9-83f1-ad55ae22219d

📥 Commits

Reviewing files that changed from the base of the PR and between 2cd8630 and a6c5c02.

📒 Files selected for processing (5)
  • .agents/skills/benchmark-model-kernels/SKILL.md
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py
💤 Files with no reviewable changes (1)
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py
🚧 Files skipped from review as they are similar to previous changes (4)
  • .agents/skills/benchmark-model-kernels/SKILL.md
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py

📝 Walkthrough

Walkthrough

Adds an operator-facing kernel benchmarking skill, meta-tensor inspection for dense, Mamba, and MoE layouts, FlashInfer execution with quantization timing and error reporting, comprehensive tests, and Bandit exclusions.

Changes

Model Kernel Benchmarking

Layer / File(s) Summary
Skill workflow and operator contract
.agents/skills/benchmark-model-kernels/SKILL.md, pyproject.toml
Documents the interview workflow, shape derivation rules, benchmark constraints, reporting artifacts, manual supplements, and Bandit exclusions.
Meta-model shape inspection and command derivation
.agents/skills/benchmark-model-kernels/scripts/benchmark_model.py, .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py
Loads models with meta tensors, derives dense, Mamba, and MoE layouts, validates TP/EP and routing constraints, builds runner arguments, and tests model-family coverage and CLI behavior.
FlashInfer case execution and result aggregation
.agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py, .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py
Generates GEMM and MoE cases, runs the FlashInfer driver, measures activation quantization, combines timings and errors, writes CSV results, and tests validation and failure handling.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant benchmark_model.py
  participant Transformers
  participant benchmark_via_builtin.py
  participant flashinfer_benchmark.py
  Operator->>benchmark_model.py: Select model, TP/EP, and M values
  benchmark_model.py->>Transformers: Construct meta-tensor model
  Transformers-->>benchmark_model.py: Return module and config shapes
  benchmark_model.py->>benchmark_via_builtin.py: Pass derived GEMM and MoE arguments
  benchmark_via_builtin.py->>flashinfer_benchmark.py: Run generated testlist cases
  flashinfer_benchmark.py-->>benchmark_via_builtin.py: Return timings and errors
  benchmark_via_builtin.py-->>Operator: Write combined_results.csv
Loading

Suggested reviewers: kevalmorabia97

🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: adding FlashInfer benchmarking scripts and a skill.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns ✅ Passed No hardcoded trust_remote_code/weights_only/allow_pickle, no eval/exec or # nosec, and pyproject only adjusts bandit excludes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/skills/benchmark-model-kernels/scripts/benchmark_model.py:
- Around line 274-286: The argument parsers in benchmark_model.py (around parser
construction before _load_meta_model) and benchmark_via_builtin.py (around its
main parser) must validate all numeric benchmark inputs as positive integers.
Add shared positive-integer validation for --tp and --ep in benchmark_model.py,
and for M/N/K, MoE shape, and iteration arguments in benchmark_via_builtin.py,
so invalid non-positive values are rejected during parsing before model
inspection, shape generation, execution, or CUDA allocation.

In @.agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py:
- Around line 399-426: Update the CSV-writing flow in the results writer to emit
the separator rows required by the sectioned-table contract around both the GEMM
and MoE sections. Preserve the existing headers, data rows, and conditional
section ordering while restoring separators even when both sections are present.
- Around line 329-337: Update the FP8 branch in _quant_times() so that when
vllm_ops is unavailable it records an explicit warning or error result for the
affected quantization case instead of continuing silently. Ensure
_write_results() preserves and emits that fallback cell as the corresponding
_with_quant row, while leaving available vLLM and NVFP4 execution unchanged.
- Around line 525-537: Update the result-loading block around _run_driver and
builtin_csv so a missing builtin_results.csv is treated as an empty row set
instead of raising FileNotFoundError. Preserve normal CSV parsing when the file
exists, then continue completed_tags and per-case error aggregation so
combined_results.csv is still produced with missing-case reasons.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 8a542345-e207-4bbb-9999-64efe1192a93

📥 Commits

Reviewing files that changed from the base of the PR and between 95ee9c4 and 4d9cabf.

📒 Files selected for processing (7)
  • .agents/skills/benchmark-model-kernels/SKILL.md
  • .agents/skills/benchmark-model-kernels/agents/openai.yaml
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py
  • .agents/skills/benchmark-model-kernels/tests/evals.json
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py

Comment thread .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py Outdated
Comment thread .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py Outdated
@sychen52
sychen52 force-pushed the flashinfer_benchmark branch from 4d9cabf to 9a63807 Compare July 17, 2026 19:05
@sychen52
sychen52 requested a review from a team as a code owner July 17, 2026 19:05
@sychen52
sychen52 requested a review from kevalmorabia97 July 17, 2026 19:05
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.20%. Comparing base (f479e78) to head (a6c5c02).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1980      +/-   ##
==========================================
- Coverage   77.87%   74.20%   -3.68%     
==========================================
  Files         522      525       +3     
  Lines       58452    62383    +3931     
==========================================
+ Hits        45522    46289     +767     
- Misses      12930    16094    +3164     
Flag Coverage Δ
examples 43.29% <ø> (-0.16%) ⬇️
gpu 57.93% <ø> (-0.64%) ⬇️
regression 15.07% <ø> (+0.07%) ⬆️
unit 54.80% <ø> (-0.60%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py:
- Around line 350-374: Update the per-spec quantization timing loop in
_quant_times to catch CUDA allocation, CUPTI, runner, and kernel timing
exceptions without aborting the overall benchmark. For each failed (kind, m, k)
specification, store an explicit error result using the existing error-value
convention like _FP8_QUANT_UNAVAILABLE, emit an appropriate warning if needed,
and continue so completed driver results can still be written to
combined_results.csv.

In `@pyproject.toml`:
- Around line 291-297: Remove the .agents/skills/benchmark-model-kernels/ entry
from Bandit’s exclude_dirs configuration so executable benchmark scripts remain
covered. Add a narrow suppression only at the specific reviewed false-positive
call site within those scripts, without excluding the broader skill directory.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: db8b82d3-7d5e-4dbd-8b91-1a668cabacc9

📥 Commits

Reviewing files that changed from the base of the PR and between 4d9cabf and 9a63807.

📒 Files selected for processing (8)
  • .agents/skills/benchmark-model-kernels/SKILL.md
  • .agents/skills/benchmark-model-kernels/agents/openai.yaml
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py
  • .agents/skills/benchmark-model-kernels/tests/evals.json
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py
  • pyproject.toml
🚧 Files skipped from review as they are similar to previous changes (3)
  • .agents/skills/benchmark-model-kernels/agents/openai.yaml
  • .agents/skills/benchmark-model-kernels/tests/evals.json
  • .agents/skills/benchmark-model-kernels/SKILL.md

Comment thread pyproject.toml
Comment on lines +291 to +297
exclude_dirs = [
".agents/skills/benchmark-model-kernels/",
".github/",
"examples/",
"noxfile.py",
"tests/",
]

@coderabbitai coderabbitai Bot Jul 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Keep the executable benchmark scripts in Bandit coverage.

This excludes the entire skill, including its production scripts. Remove Line 292 and narrowly suppress any reviewed false positive at its call site instead.

Proposed fix
 exclude_dirs = [
-    ".agents/skills/benchmark-model-kernels/",
     ".github/",
     "examples/",
     "noxfile.py",
     "tests/",
 ]

As per coding guidelines, “Make simple, surgical changes; avoid speculative refactors, broad rewrites, and unrelated cleanup.”

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
exclude_dirs = [
".agents/skills/benchmark-model-kernels/",
".github/",
"examples/",
"noxfile.py",
"tests/",
]
exclude_dirs = [
".github/",
"examples/",
"noxfile.py",
"tests/",
]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pyproject.toml` around lines 291 - 297, Remove the
.agents/skills/benchmark-model-kernels/ entry from Bandit’s exclude_dirs
configuration so executable benchmark scripts remain covered. Add a narrow
suppression only at the specific reviewed false-positive call site within those
scripts, without excluding the broader skill directory.

Source: Coding guidelines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevalmorabia97 @shengliangxu , I added a python script that will call the benchmark utils in flashinfer to run benchmark, so it will use subprocess to call it. Can I add this script to the exclude directories of bandit?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? does bandit complain about subprocess?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yeyu-nvidia can you just add a # nosec: <CODE> next to all lines where bandit complains instead of skipping the folder? If there are too many then we can just keep it here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shengliangxu yes.
@kevalmorabia97 I did that initially, but CodeRabbit's pre-merge check give me an error. I guess you mean I add # nosec and disregard the error and you will approval it in the PR, right?

with different backends.

Signed-off-by: Shiyang Chen <shiychen@nvidia.com>
@sychen52
sychen52 force-pushed the flashinfer_benchmark branch from 9a63807 to 2cd8630 Compare July 17, 2026 21:01

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py:
- Around line 33-36: Update the import and subprocess setup around argument
parsing, `run_benchmark`, and the child execution flow so `--flashinfer_repo`
controls both `flashinfer` and `flashinfer.testing` resolution. Add the selected
checkout root to `sys.path` before importing those modules, including when the
child runs from `benchmarks_dir`, and ensure imports cannot silently use an
unrelated installed FlashInfer.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 9c1b8ca4-8092-4081-b771-83772f0e2180

📥 Commits

Reviewing files that changed from the base of the PR and between 9a63807 and 2cd8630.

📒 Files selected for processing (6)
  • .agents/skills/benchmark-model-kernels/SKILL.md
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_via_builtin.py
  • pyproject.toml
🚧 Files skipped from review as they are similar to previous changes (3)
  • pyproject.toml
  • .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
  • .agents/skills/benchmark-model-kernels/tests/test_benchmark_model.py

Comment thread .agents/skills/benchmark-model-kernels/scripts/benchmark_via_builtin.py Outdated
@sychen52 sychen52 changed the title add scripts and a skill to use flashinfer to do layerwise benchmark Scripts and a skill to do per-layer benchmark using flashinfer Jul 17, 2026

@cjluo-nv cjluo-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review (bedrock-claude-opus-4-8) — DM the bot to share feedback.

New self-contained skill (benchmark-model-kernels) with two scripts that (1) derive per-rank GEMM/MoE benchmark shapes from a HF config on meta tensors and (2) drive FlashInfer's built-in benchmark for BF16/FP8/NVFP4. +2301/-1, 3 non-test files + 2 test files + a bandit-exclude tweak.

Design review (complexity gate fired): The problem — a per-layer microbenchmark harness that derives per-rank shapes from model configs without loading weights — has no existing in-repo equivalent (searched; other skills are task-specific and use tests.json eval metadata, not benchmarking). This wraps FlashInfer's flashinfer_benchmark.py rather than reimplementing it; the value-add is the config→shape derivation. OmegaConf/Hydra/Jinja aren't relevant. The pytest-in-skill layout is already an established convention (pyproject has a .agents/skills/*/tests/test_*.py per-file-ignore). Design looks reasonable and the PR body gives concrete usage, though the rationale is brief.

Licensing: clean — new files carry the canonical LICENSE_HEADER NVIDIA header verbatim; no LICENSE/vendoring changes. The bandit exclude_dirs addition is narrowly scoped to the new skill (justified by the intentional subprocess use, which is invoked without a shell and gates trust_remote_code behind an explicit flag).

Correctness: I traced the shape-derivation logic (fused QKV incl. GQA replication, gate/up, Mamba-2, ModuleList vs stacked/direct experts, EP-vs-TP intermediate sharding, routing derivation, expert audit, override rejection) and it holds up; the unit tests are genuinely meaningful and internally consistent across Llama/Mixtral/GptOss/NemotronH plus edge cases.

Why nudge (not approve): (1) sizable new subsystem worth an owner's architectural eyes; (2) coverage gap — benchmark_via_builtin.py's GPU/FlashInfer runtime paths (_run_driver real invocation, _quant_times/_nvfp4_runner/_fp8_runner CUDA timing) are mocked out and never exercised in CI, consistent with the repo's known GPU-only coverage risk; (3) CHANGELOG left unmarked — acceptable for an internal agent skill (no shipped library API change), but worth confirming. No prompt-injection concerns in the untrusted content (SKILL.md's "do not override" prose targets the skill's agent user, not the reviewer).

@Edwardf0t1 Edwardf0t1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posting two inline comments from my review: one on CI test discovery, one on TP×EP handling for the MoE shape.

Comment on lines +23 to +25
pytest.importorskip("torch")
pytest.importorskip("accelerate")
transformers = pytest.importorskip("transformers")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests never run in CI as written. The skills job in .github/workflows/unit_tests.yml installs only pytest (it's documented as "stdlib-only and hermetic"), so these importorskip calls on torch/accelerate/transformers skip this entire file — and pytest.importorskip("flashinfer") skips all of test_benchmark_via_builtin.py the same way. CI stays green whether or not the code works, so the ~870 lines of tests only ever run on a dev machine.

Suggestions:

  • Route this file into the main linux unit lane (it needs only torch/accelerate/transformers — all standard unit-test deps, no GPU).
  • In benchmark_via_builtin.py, defer import flashinfer into the functions that need it (same pattern as the existing vllm try/except). The majority of that test file (_parser, _combine, _write_results, _parse_driver_errors, case generation) is pure CPU logic that could then run without the GPU stack.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import moved. However, route test to main unit lane involve workflow change.

Comment thread .agents/skills/benchmark-model-kernels/scripts/benchmark_model.py
Signed-off-by: Shiyang Chen <shiychen@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants